export const menuPath = (menuList: []) => {
  const arr: any = []
  menuList.forEach((item: any) => {
    if (item.children && item.buttons) {
      arr.push(item.path)
    } else {
      arr.push(...menuPath(item.children))
    }
  })
  return arr
}
